home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950929-19951130
/
000359_news@columbia.edu_Fri Nov 10 19:54:11 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA19689
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun>); Sat, 11 Nov 1995 08:22:40 -0500
Received: (from news@localhost) by apakabar.cc.columbia.edu (8.6.12/8.6.12) id IAA13829 for kermit.misc@watsun; Sat, 11 Nov 1995 08:22:38 -0500
Path: news.columbia.edu!panix!bloom-beacon.mit.edu!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!in2.uu.net!usc!cs.utexas.edu!utnut!torn!news.ccs.queensu.ca!news.ccs.queensu.ca!not-for-mail
From: mike@ccs.queensu.ca (Mike Smith)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Dectecting winsock - How?
Date: 10 Nov 1995 14:54:11 -0500
Organization: Queen's University, Kingston
Lines: 47
Sender: mike@knot.QueensU.CA
Message-Id: <480al3$4hm@ccs-sparc2.queensu.ca>
References: <1995Nov9.171003.1@vax.sbu.ac.uk>
Nntp-Posting-Host: ccs-sparc2.ccs
To: higginha@vax.sbu.ac.uk
In article <1995Nov9.171003.1@vax.sbu.ac.uk>, higginha@vax.sbu.ac.uk writes:
|> Hi out there in the info-pool
|>
|> Just a quickie here:
|> I'm using kermit under windows and would like to detect
|> whether Trumpet winsock is loaded, if it is, display some
|> error message then exit Kermit. If it is not then Kermit
|> can continues and makes its connection to the remote host.
|> Any suggestions greatly appreciated.
|>
|> Thanks in advance. - Tony -
|>
I don't believe there is any way to detect that Winsock is running.
However, if you *know* you are on an ethernet connection you can test
for failure after your script executes "connect" and then issue a warning
message asking if Winsock is implicated. That, at least, was how I
did it here. Below are a couple macros defined in our local customizations.
\m(qcon) is a local macro indicating the type of connection: ethernet, dial-in,
or pacx. You'd have to replace that test with something of your own.
The login script does a set port tcp <whatever> and then
connect
if failure wswarn
; Emsg reports an error message with a beep and then sleeps 10 seconds
; to let Windows users read the message before exiting.
def emsg -
echo {\7\%1}, -
if > argc 1 echo {}, -
echo {...MS-Kermit will exit in 10 seconds or sooner if you press any key...}, -
sleep 10, -
exit
; wswarn warns that Kermit cannot be used on an ethernet connection if
; Winsock is running. On other connections wswarn is a no-op.
def wswarn -
if not eq \m(qcon) ethernet end, -
echo {}, -
echo {Warning: MS-Kermit could not establish a network connection. If you are in}, -
emsg {Windows, make sure that Trumpet Winsock is *closed*, not just minimized.}, -
end 1
--
Mike Smith mike@ccs.queensu.ca
Queen's University Michael.D.Smith@QueensU.CA
Computing and Communications Services (613) 545-2024